<template>
  <div>

  <!-- --------------------上半部分 -->

    <div class="news clearfix">
    <!-- 头部 b标题------------------------------------------>
    <div class="header">
      <h3 class="header-title">新闻中心</h3>
    </div>
    <!-- 左栏 --------------------------------------------->
    <div class="main-left">
      <!-- 搜索框 -->
      <div class="input" style="display: flex; justify-content: center">
        <el-input
          prefix-icon="el-icon-search"
          style="width: 600px; margin-right: 9px"
          placeholder="请输入关键字"
          size="small"
        />
        <el-button
          type="primary"
          icon="el-icon-search"
          size="small"
        ></el-button>
      </div>

      <!-- 卡片 -->
      <div class="admin-card">
        <el-card class="box-card">
          <div slot="header" class="clearfix">
            <span>集团新闻</span>
            <el-button
              style="float: right; padding: 3px 0; color: red"
              type="text"
            ></el-button>
          </div>
          <div v-for="o in 4" :key="o" class="text item">
            {{ "列表内容 " + o }}
          </div>
        </el-card>

        <!-- 2 -->
        <el-card class="box-card">
          <div slot="header" class="clearfix">
            <span>媒体视频</span>
          </div>
          <div v-for="o in 4" :key="o" class="text item">
            {{ "列表内容 " + o }}
          </div>
        </el-card>
        <!-- 3 -->
        <el-card class="box-card">
          <div slot="header" class="clearfix">
            <span>投资</span>
          </div>
          <div v-for="o in 4" :key="o" class="text item">
            {{ "列表内容 " + o }}
          </div>
        </el-card>
        <!-- 4 -->
        <el-card class="box-card">
          <div slot="header" class="clearfix">
            <span>移民</span>
          </div>
          <div v-for="o in 4" :key="o" class="text item">
            {{ "列表内容 " + o }}
          </div>
        </el-card>

        <!-- 5-->
        <el-card class="box-card">
          <div slot="header" class="clearfix">
            <span>最新公告</span>
          </div>
          <div v-for="o in 4" :key="o" class="text item">
            {{ "列表内容 " + o }}
          </div>
        </el-card>
      </div>
    </div>

    <!-- 右栏 ------------------------------------------------------------->
    <div class="main-right clearfix">
      <h2 class="news-list-title" style="color: #fff; fontsize: 25px">
        新闻推荐
      </h2>
    </div>
  </div>

    <!-- ---------------------下部分 -->

  <div>
    <img src="../../assets/upload/city2.jpg" class="bool-img" alt="">
    <p>三十而已 三十而已三十而已三十而已三十而已三十而已三十而已三十而已三十而已三十而已三十而已三十而已三十而已</p>
    <p>三十而已 三十而已三十而已三十而已三十而已三十而已三十而已三十而已三十而已三十而已三十而已三十而已三十而已</p>
    <p>三十而已 三十而已三十而已三十而已三十而已三十而已三十而已三十而已三十而已三十而已三十而已三十而已三十而已</p>
    <p>三十而已 三十而已三十而已三十而已三十而已三十而已三十而已三十而已三十而已三十而已三十而已三十而已三十而已</p>
  </div>
  </div>
</template>

<script>
export default {
  name: "MyNews",
  data() {
    return {
      newsData: [],

    };
  },
  async created() {},
  methods: {},
};
</script>

<style lang="scss" scoped>
* {
  box-sizing: border-box;
}
// -----------下---------
.bool-img{
  width: 100vw;
  height: 100vh;
}

// ---------上
html,
body,
h3 {
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
}

a:hover {
  color: #409eff;
}

.container {
  padding: 15px;
}

.clearfix:after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  line-height: 0;
  font-size: 0;
  visibility: hidden;
  clear: both;
}

.header {
  border-bottom: 2px solid #eee;
}

.header-title {
  margin: 0;
  height: 50px;
  line-height: 46px;
  font-size: 24px;
  text-align: center;
  color: #eee;
}

.news {
  height: 100vh;
  width: 100vw;
  background: url(https://img95.699pic.com/photo/40159/9989.gif_wh300.gif)
    center center no-repeat;
  // background: url('../../assets/2-home.jpg') center center no-repeat;
  // background: url(https://img95.699pic.com/photo/40141/0404.gif_wh300.gif) center center no-repeat;
  // background: url(https://bpic.588ku.com/ad_diversion/21/03/26/cefacea50859f9266fb0bc5dcda514b8.gif) center center no-repeat;
  // background-size: contain contain;
  background-size: 100% 100%;

  .main-left,
  .main-right {
    float: left;
  }

  .main-left {
    width: 80%;
    // min-height: 600px;
    border-right: 2px solid #eee;
    .input {
      margin-top: 25px;
      margin-bottom: 20px;
    }
    .box-card {
      // width: 400px;
      // height: 260px;
      width: 20vw;
      height: 30vh;
      margin: 25px 20px;
    }

    .main-right {
      width: 300px;
      .news-list-title {
        //   margin-top: 8px;
        // font-size: 50px;
        // color: #eee;
      }
    }

    .admin-card {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-around;
      margin-top: 10px;
    }
  }
}
</style>
